package com.dzy.result;

public enum ResultConstants {

    SUCCESS("1","操作成功"),
    ERROR("-1","操作失败"),
    LOGIN_SUCCESS("2","登陆成功"),
    REGISTER_ERROR("-2","注册失败"),
    LOGIN_ERROR("3","账号或密码错误"),
    TOKEN_ERROR("4","token无效"),
    PENDING_REVIEW("5","待审核"),
    REVIEW_FAILED("6","审核不通过"),
    CLOSE_ACCOUNT("7","关闭账户"),
    SENDSMS_SUCCESS("8","短信验证码发送成功"),
    CARTADD_SUCCESS("9","添加购物车成功"),
    DELETECAR_SUCCESS("10","添加购物车成功");

    private String code;
    private String message;

    ResultConstants(String code, String message) {
        this.code = code;
        this.message = message;
    }

    ResultConstants() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
